<!-- 下载app横幅 -->
<template>
  <div class="down-app-fix" @click="open_bot_app(aiUserId)">
    <div class="icon"></div>
    <div class="text">
      <div class="title">SyaChat</div>
      <div class="trip">Give you 24x7 companionship</div>
    </div>
    <div class="button">Download</div>
  </div>
</template>

<script setup lang="ts">
import { open_bot_app } from '@/utils/download'
defineProps({
  aiUserId: {
    type: Number,
    default: 0,
  },
})
</script>

<style lang="scss" scoped>
.down-app-fix {
  margin: 8px auto 8px;
  width: 311px;
  height: 34px;
  padding: 10px 16px;
  background-color: rgba(217, 217, 217, 1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 12px;
  .text {
    flex: 1;
    color: #fff;
    .title {
      font-family: SF UI Text;
      font-size: 14px;
      font-weight: 600;
      line-height: 21px;
      text-align: left;
    }
    .trip {
      font-family: SF UI Text;
      font-size: 12px;
      font-weight: 400;
      line-height: 18px;
      text-align: left;
    }
  }
  .icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    margin-right: 8px;
    background: url('@/assets/images/bot-app-icon.png') no-repeat center center;
    background-size: cover;
  }
  .button {
    height: 34px;
    padding: 0 15px;
    line-height: 34px;
    color: #fff;
    text-align: center;
    border-radius: 12px;
    font-size: 13px;
    background-image: linear-gradient(115.62deg, #9259fe 16.21%, #6365ff 83.79%);
  }
}
</style>
